package com.ming_za.odupdaterserver.core.vo.req;

import com.ming_za.odupdaterserver.core.annotation.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "修改密码需要的参数")
@Data
public class ModifyPasswordVo {

    @Schema(description = "旧密码")
    @NotNull(message = "密码不能为null，可设为空字符串")
    private String oldPassword;

    @Schema(description = "新密码")
    @Password(message = "密码不能小于6位")
    private String newPassword;

}
